/* ============================================================
   DREZIMMER CINEMATIC SOUL â€” GLOBAL STYLESHEET
   Warm, atmospheric, reflective, cinematic design system
   ============================================================ */

/* ----------------------------------------------
   1. COLOR PALETTE
---------------------------------------------- */
:root {
    --black: #0C0C0C;
    --dark-gray: #1A1A1A;
    --gray: #292929;
    --light-gray: #8E8E8E;
    --off-white: #E9E9E9;
    --white: #FFFFFF;

    --gold: #C9A86A;
    --amber: #D8B878;
    --rust: #A06A3A;

    --deep-navy: #0D1A26;
    --midnight-blue: #13202C;

    --h1: 3.2rem;
    --h2: 2.4rem;
    --h3: 1.8rem;
    --h4: 1.2rem;
    --body: 1.05rem;
    --small: 0.85rem;
}

/* ----------------------------------------------
   2. BASE STYLES
---------------------------------------------- */
body {
    background: var(--black);
    color: var(--off-white);
    font-family: "Inter", "Roboto", "Open Sans", sans-serif;
    font-size: var(--body);
    line-height: 1.75;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Cinematic grain overlay */
body::after {
    content: "";
    pointer-events: none;
    position: fixed;
    inset: 0;
    background: url('/files/grain.png');
    opacity: 0.09;
    mix-blend-mode: overlay;
    z-index: 100;
}

h1, h2, h3, h4 {
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.7px;
    margin-top: 0;
}

p {
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

/* ----------------------------------------------
   3. LAYOUT SYSTEM
---------------------------------------------- */
.section {
    padding: 80px 8%;
    max-width: 1400px;
    margin: auto;
}

/* ----------------------------------------------
   4. BUTTONS
---------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.btn.primary {
    background: var(--gold);
    color: var(--black);
}

.btn.primary:hover {
    background: var(--amber);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn.secondary:hover {
    background: var(--gold);
    color: var(--black);
}

.btn.link {
    color: var(--gold);
    font-weight: 500;
}

.btn.link:hover {
    color: var(--amber);
}

/* ----------------------------------------------
   5. HERO SECTIONS
---------------------------------------------- */
.hero {
    background: linear-gradient(135deg, var(--deep-navy), var(--black));
    padding: 140px 8% 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.07), transparent 65%);
    pointer-events: none;
}

.hero-content p {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.2rem;
    opacity: 0.85;
}

/* ----------------------------------------------
   6. GRIDS & CARDS
---------------------------------------------- */
.category-grid,
.catalog-grid,
.tool-grid,
.guide-grid,
.license-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.category-item,
.catalog-item,
.tool-item,
.guide-item,
.license-item {
    background: var(--gray);
    padding: 24px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.category-item:hover,
.catalog-item:hover,
.tool-item:hover,
.guide-item:hover,
.license-item:hover {
    background: var(--dark-gray);
}

/* ----------------------------------------------
   7. SECTION HEADERS
---------------------------------------------- */
.section h2 {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}

/* ----------------------------------------------
   8. ATMOSPHERIC EFFECTS
---------------------------------------------- */
.atmos-glow {
    position: relative;
}

.atmos-glow::after {
    content: "";
    position: absolute;
    inset: -20px;
    background: rgba(201, 168, 106, 0.08);
    filter: blur(40px);
    z-index: -1;
}

/* ----------------------------------------------
   9. LONG-FORM CONTENT
---------------------------------------------- */
.section p + h3 {
    margin-top: 40px;
}

ul, ol {
    padding-left: 20px;
    margin: 20px 0;
}

ul li, ol li {
    margin-bottom: 10px;
    opacity: 0.9;
}

/* ----------------------------------------------
   10. MOTION (Subtle Cinematic Moves)
---------------------------------------------- */
.fade-in {
    animation: fadeIn 1.4s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------
   11. UTILITIES
---------------------------------------------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.fade { opacity: 0.6; }
.wide { letter-spacing: 1px; }
.narrow { max-width: 800px; margin: auto; }
